<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<?php
include_once '../objects/person.php';
session_start();
if (!isset($_SESSION['user'])) {
    header("location: ../../index.php");
} else {
    $user = $_SESSION['user'];
}
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>* SEPC *</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script language="JavaScript" src="../../js/validations.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../../style/styles.css">
    </head>
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a href="../../index.php" class="brand"><img src="../../img/sepc_logo.png" alt=""></a>
                    <div class="nav-collapse">
                        <ul class="nav">
                            <li class="nav-header"><h3>.: Registro de Razas :.</h3></li>
                            <li><a></a></li><li><a></a></li><li><a></a></li><li><a></a></li>
                            <li><a></a></li><li><a></a></li><li><a></a>
                            <li class="right"><a href="menuadm.php"><?php echo $user->getMail();?></a></li>                            
                        </ul>
                        <form class="navbar-form pull-right" name="" action="../closeConexion.php" method="post" >
                            <button type="submit" class="btn btn-danger"><i class="icon-remove-sign  icon-white"></i> Cerrar Session</button>
                        </form> 
                    </div>
                </div>
            </div>
        </div>
        <br>
        <br>
        <div class="container">
            <div class="row-fluid">
                <legend></legend>
                <div class="span1"></div>
                <div class="span10">
                    <form action="../servlet.php?action=enterRace" name="enterRace" method="post" class="form-horizontal" onsubmit="return validateRace(document);">
                        <table>
                            <tbody>
                                <tr>
                                    <td><label for="namerace" class="control-label">Nombre de la Raza:</label></td>
                                    <td><select name="namerace" id="namerace">
                                            <option value="Aberdeen Angus">Aberdeen Angus</option>
                                            <option value="Angus Rojo">Angus Rojo</option>
                                            <option value="Blaco Orejinegro">Blaco Orejinegro</option>
                                            <option value="Brangus (Brahman x Angus)">Brangus (Brahman x Angus)</option>
                                            <option value="Casanereño">Casanereño</option>
                                            <option value="Charolais">Charolais</option>
                                            <option value="Chino Santandereano">Chino Santandereano</option>
                                            <option value="Gir">Gir</option>
                                            <option value="Harton del Valle">Harton del Valle</option>
                                            <option value="Hereford">Hereford</option>
                                            <option value="Indobrasil">Indobrasil</option>
                                            <option value="Nelore">Nelore</option>
                                            <option value="San Martinero">San Martinero</option>
                                            <option value="Santa Gertrudis">Santa Gertrudis</option>   
                                        </select>
                                    </td>
                                    <td class="span2"></td>
                                    <td><label for="sacrAge" class="control-label">Edad de Sacrificio Promedio de la Raza (Dias):</label></td>
                                    <td><select name="sacrAge" id="sacrAge">
                                            <option value="540">540 Dias</option>
                                            <option value="570">570 Dias</option>
                                            <option value="600">600 Dias</option>
                                            <option value="630">630 Dias</option>
                                            <option value="660">660 Dias</option>
                                            <option value="690">690 Dias</option>
                                            <option value="720">720 Dias</option>
                                            <option value="750">750 Dias</option>
                                            <option value="780">780 Dias</option>
                                            <option value="810">810 Dias</option>
                                            <option value="840">840 Dias</option>
                                            <option value="870">870 Dias</option>
                                            <option value="900">900 Dias</option>
                                            <option value="930">930 Dias</option>
                                            <option value="960">960 Dias</option>
                                        </select>
                                    </td>  
                                </tr>
                                <tr>
                                    <td><label for="birthWeight" class="control-label">Peso de Nacimiento Promedio de la Raza (Kg):</label></td>
                                    <td><select name="birthWeight" id="birthWeight" >
                                            <option value="23">23 Kg</option>
                                            <option value="25">25 Kg</option>
                                            <option value="27">27 Kg</option>
                                            <option value="29">29 Kg</option>
                                            <option value="31">31 Kg</option>
                                            <option value="33">33 Kg</option>
                                            <option value="35">35 Kg</option>
                                            <option value="37">37 Kg</option>
                                            <option value="39">39 Kg</option>
                                            <option value="41">41 Kg</option>
                                            <option value="43">43 Kg</option>
                                            <option value="45">45 Kg</option>
                                        </select>
                                    </td>
                                    <td class="span2"></td>
                                    <td><label for="dryMatter" class="control-label">Consumo de Materia Seca Promedio de la Raza (% P.V.):</label></td>
                                    <td><select name="dryMatter" id="dryMatter">
                                            <option value="2.0">2.0% MS</option>
                                            <option value="2.1">2.1% MS</option>
                                            <option value="2.2">2.2% MS</option>
                                            <option value="2.3">2.3% MS</option>
                                            <option value="2.4">2.4% MS</option>
                                            <option value="2.5">2.5% MS</option>
                                            <option value="2.6">2.6% MS</option>
                                            <option value="2.7">2.7% MS</option>
                                            <option value="2.8">2.8% MS</option>
                                            <option value="2.9">2.9% MS</option>
                                            <option value="3.0">3.0% MS</option>
                                            <option value="3.1">3.1% MS</option>
                                            <option value="3.2">3.2% MS</option>
                                            <option value="3.3">3.3% MS</option>
                                            <option value="3.4">3.4% MS</option>
                                            <option value="3.5">3.5% MS</option>
                                            <option value="3.6">3.6% MS</option>
                                            <option value="3.7">3.7% MS</option>
                                            <option value="3.8">3.8% MS</option>
                                            <option value="3.9">3.9% MS</option>
                                            <option value="4.0">4.0% MS</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td><label for="weaningWeight" class="control-label">Peso de Destete Promedio de la Raza (Kg):</label></td>
                                    <td><select name="weaningWeight" id="weaningWeight">
                                            <option value="130">130 Kg</option>
                                            <option value="140">140 Kg</option>
                                            <option value="150">150 Kg</option>
                                            <option value="160">160 Kg</option>
                                            <option value="170">170 Kg</option>
                                            <option value="180">180 Kg</option>
                                            <option value="190">190 Kg</option>
                                            <option value="200">200 Kg</option>
                                            <option value="210">210 Kg</option>
                                        </select>
                                    </td>
                                    <td class="span2"></td>
                                    <td><label for="efficiency" class="control-label">Rendimiento en Canal Promedio de la Raza (% P.V.)</label></td>
                                    <td><select name="efficiency" id="efficiency">
                                            <option value="45">45 P.V</option>
                                            <option value="46">46 P.V</option>
                                            <option value="47">47 P.V</option>
                                            <option value="48">48 P.V</option>
                                            <option value="49">49 P.V</option>
                                            <option value="50">50 P.V</option>
                                            <option value="51">51 P.V</option>
                                            <option value="52">52 P.V</option>
                                            <option value="53">53 P.V</option>
                                            <option value="54">54 P.V</option>
                                            <option value="55">55 P.V</option>
                                            <option value="56">56 P.V</option>
                                            <option value="57">57 P.V</option>
                                            <option value="58">58 P.V</option>
                                            <option value="59">59 P.V</option>
                                            <option value="60">60 P.V</option>
                                            <option value="61">61 P.V</option>
                                            <option value="62">62 P.V</option>
                                            <option value="63">63 P.V</option>
                                            <option value="64">64 P.V</option>
                                            <option value="65">65 P.V</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td><label for="weaningAge" class="control-label">Edad de Destete Promedio de la Raza (Dias):</label></td>
                                    <td><select name="weaningAge" id="weaningAge">
                                            <option value="180">180 Dias</option>
                                            <option value="190">190 Dias</option>
                                            <option value="200">200 Dias</option>
                                            <option value="210">210 Dias</option>
                                            <option value="220">220 Dias</option>
                                            <option value="230">230 Dias</option>
                                            <option value="240">240 Dias</option>
                                            <option value="250">250 Dias</option>
                                            <option value="260">260 Dias</option>
                                            <option value="270">270 Dias</option>
                                            <option value="280">280 Dias</option>
                                            <option value="290">290 Dias</option>
                                            <option value="300">300 Dias</option>
                                            <option value="310">310 Dias</option>
                                        </select>
                                    </td>
                                    <td class="span2"></td>
                                    <td><label for="tenderness" class="control-label">Valor de la Terneza Promedio de la Raza (Kg/f):</label></td>
                                    <td><input type="text" name="tenderness" id="tenderness" /></td>
                                </tr>
                                <tr>
                                    <td><label for="sacrWeight" class="control-label">Peso de Sacrificio Promedio de la Raza (Kg):</label></td>
                                    <td><select name="sacrWeight" id="sacrWeight">
                                            <option value="400">400Kg</option>
                                            <option value="410">410Kg</option>
                                            <option value="420">420Kg</option>
                                            <option value="430">430Kg</option>
                                            <option value="440">440Kg</option>
                                            <option value="450">450Kg</option>
                                            <option value="460">460Kg</option>
                                            <option value="470">470Kg</option>
                                            <option value="480">480Kg</option>
                                            <option value="490">490Kg</option>
                                            <option value="500">500Kg</option>
                                            <option value="510">510Kg</option>
                                            <option value="520">520Kg</option>
                                            <option value="530">530Kg</option>
                                            <option value="540">540Kg</option>
                                            <option value="550">550Kg</option>
                                        </select>
                                    </td>
                                    <td class="span2"></td>
                                    <td><label for="imgrace" class="control-label">Imagen de la Raza:</label></td>
                                    <td><input type="file" name="file" style="display:none" onchange="this.form.imgrace.value=this.value">
                                        <input type="text" name="imgrace" class="bnt span10" readonly="readonly">
                                        <input type="button" value="Ir" onclick="this.form.file.click()" class="btn span2">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="form-actions" align="center">
                            <button type="submit" class="btn btn-primary"><i class="icon-check icon-white"></i> Registar</button>
                            <a href="menuadm.php" class="btn btn-danger"><i class="icon-remove icon-white"></i> Cancelar</a>
                        </div>
                    </form>
                </div>
                <div class="span1"></div>                
            </div>
        </div>
        
        <footer class="footer">
            <div class="container">
                <small>	
                    <img src="../../img/unicor_logo.png">
                    <strong>	Universidad de Cordoba. Facultad de Ingen&iacute;erias :: Departamento de Ingen&iacute;eria de Sistemas y Telecomunicaciones</strong>
                    <br>
                    Dise&ntilde;ado y Desarrollado por: Mar&iacute;a Alejandra Teher&aacute;n &amp; Daniela Mu&ntilde;oz De La Rosa &copy;
                </small>
            </div>
        </footer>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/bootstrap.js"></script>
        <script type="text/javascript" src="js/bootstrap-collapse.js"></script>
    </body>
</html>